package com.yyhh.helpcall.model;

import java.io.Serializable;

public class CallModel implements Serializable {

    public String name;
    public String number;
    public long date;
    public int duration;
    public int callType; //1打入 0打出 2未接
    private StringBuffer stringBuffer = new StringBuffer();

    public String tel;
    public int direction;
    public long timestamp;


    public CallModel(String name, String number, long date, int duration, int callType) {
        this.name = name;
        this.number = number;
        this.date = date;
        this.duration = duration;
        this.callType = callType;

        this.tel = number;
        this.direction = callType;
        this.timestamp = date;
    }

//    @NonNull
//    @Override
//    public String toString() {
//        stringBuffer.setLength(0);
//        StringBuffer str = stringBuffer
//                .append("name =")
//                .append(name)
//                .append(",number =")
//                .append(number)
//                .append(",date =")
//                .append(date)
//                .append(",duration =")
//                .append(duration)
//                .append(",callType =")
//                .append(callType);
//        return str.toString();
//    }
}
